using System;
using System.Xml.Serialization;
using ABC.XPath.Attributes;
using ABC.XPath.Converter;

namespace ABC.XPath.Test.Models
{
	[XmlRoot( "root" )]
	public class PropertyWithFormatter
	{
		public string Name = "John Doe";
		[Converter( typeof( AgeConverter ) )] public int Age = 45;
	}

	public class AgeConverter : IConverter
	{
		public AgeConverter(Type type)
		{
		}

		public string ToString(object obj)
		{
			return obj + " full years";
		}

		public object ParseString(string str)
		{
			throw new NotImplementedException();
		}
	}
}